package com.junzhiit.nengji.cms.web.controller.intranet;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.bainaeco.framework.util.AssertUtil;
import com.junzhiit.nengji.cms.service.ShopService;
import com.junzhiit.nengji.cms.web.controller.BaseController;
import com.intranet.transport.object.ShopAreaTO;

@RequestMapping("/intranet/shop")
@RestController("intranetShopController")
public class ShopController extends BaseController {

	@Autowired
	private ShopService shopService;
	
	@RequestMapping(value = "/getTop200ByTime", method = RequestMethod.GET)
	public List<ShopAreaTO> getTop200ByTime(String time){
		AssertUtil.notBlank(time, "开始时间条件不能为空");
		return shopService.findTop200ByTime(time);
	}
	
}
